#ifndef HEADER_INFERENCEENGINE
#define HEADER_INFERENCEENGINE

#define INFERENCE_ENGINE_LOG "Files/InferenceEngineLog.txt"

#define DRIVER    "QMYSQL"
#define DATABASE  "poker_bot"
#define USER      "root"
#define PASSWORD  "pirat5"
#define HOST      "localhost"

#include <QtSql>
#include <QVariant>
#include <QString>
#include <QDebug>

#include "../Common/GameInfo.h"
#include "Poker.h"
#include "../Common/Player.h"

class InferenceEngine
{
	QSqlDatabase db;

	// Rename
	QSqlQueryModel * queryModel;

	QFile * inferenceEngineLog;
 
	GameInfo gameInfo;

	QString sql;
	QString sqlWhere;
 
	public:
		InferenceEngine(GameInfo & gameInfo);
		QString BuildSqlWhere(int idCard=0);
		GameInfo LaunchInferenceEngine();
		void Match();
		void ConflictResolution();
		void Act();
		void InsertNewRule(int action);  
};

#endif
